﻿@if (!string.IsNullOrEmpty(ContentUrl))
{
    <Row ItemsPerRow="ItemsPerRow.Three">
        @foreach (var url in ContentUrl.Split('\n'))
        {
            <Card style="height: 400px">
                <BodyTemplate>
                    <a href="@url" target="_blank">
                        <img style="width: 100%; height: 360px; object-fit: contain;" src="@url" alt="@url" onerror="@Path.GetFileName(url)" />
                    </a>
                </BodyTemplate>
            </Card>
        }
    </Row>
}

@code {
    [Parameter]
    public string ContentUrl { get; set; }
}